/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package compilador_v1;

import java.util.ArrayList;

/**
 *
 * @author comp9
 */
public class Gramatica {
    ArrayList<Token> palavrasre = new ArrayList<>();

    public ArrayList<Token> getPalavrasre() {
        return palavrasre;
    }

    public void setPalavrasre(ArrayList<Token> palavrasre) {
        this.palavrasre = palavrasre;
    }

    public Gramatica() {
        palavrasre.add(new Token("while", 1));
        palavrasre.add(new Token("var", 2));
        palavrasre.add(new Token("to", 3));
        palavrasre.add(new Token("then", 4));
        palavrasre.add(new Token("string", 5));
        palavrasre.add(new Token("real", 6));
        palavrasre.add(new Token("read", 7));
        palavrasre.add(new Token("program", 8));
        palavrasre.add(new Token("procedure", 9));
        palavrasre.add(new Token("print", 10));
        palavrasre.add(new Token("nreal", 11));
        palavrasre.add(new Token("nint", 12));
        palavrasre.add(new Token("literal", 13));
        palavrasre.add(new Token("integer", 14));
        palavrasre.add(new Token("if", 15));
        palavrasre.add(new Token("ident", 16));
        palavrasre.add(new Token("for", 17));
        palavrasre.add(new Token("end", 18));
        palavrasre.add(new Token("else", 19));
        palavrasre.add(new Token("do", 20));
        palavrasre.add(new Token("const", 21));
        palavrasre.add(new Token("begin", 22));
        palavrasre.add(new Token("vstring", 23));
        
    }
    
   
    
}
